home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Games for Windows (Nodtronics) / Over 1000 Games for Windows.iso / STRATEGY / CSOLVE / README.TXT < prev    next >
Encoding:
Text File  |  1996-04-23  |  12.4 KB  |  265 lines

  1. CRYPTOSOLVE VERSION 1.0
  2. Copyright 1996 James A. Parsly
  3.  
  4.  
  5. CRYPTOSOLVE is a WINDOWS based cryptogram solving utility. At its
  6. most basic level it allows you to type in a cryptogram and handles
  7. the chore of letter substitution for you. However, the real point
  8. of the program is the underlying expert system that provides hints
  9. and can even make a stab at automatic solution.
  10. --------------------------------------------------------------------
  11. SYSTEM REQUIREMENTS
  12.  
  13. This program requires Microsoft Windows
  14.  
  15. If you plan to use the Hints at all, I recommend at least a
  16. 486-66. A Pentium is even better.
  17. --------------------------------------------------------------------
  18.  
  19. INSTALLATION:
  20.  
  21. If you downloaded CRYPTOSOLVE, it probably came in the form of 
  22. a .ZIP file, CSOLVE.ZIP. Use PKUNZIP to Un-ZIP the files onto
  23. a floppy disk. Get into WINDOWS and from the Program Manager
  24. menu select FILE and then RUN.  In the Command Line box enter
  25. A:\SETUP or B:\SETUP and then click OK. This should install
  26. CRYPTOSOLVE and create a group containing the CRYPTOSOLVE icon.
  27.  
  28. FILE LIST:
  29.  
  30. A complete installation of CRYPTOSOLVE includes the following
  31. files:
  32.  
  33. CSOLVE.EXE           
  34. CSOLVE.INI  
  35. VBRUN300.DLL    Required for Visual Basic. Goes in WINDOWS/SYSTEM
  36. THREED.VBX      Required for Visual Basic. Goes in WINDOWS/SYSTEM
  37. PATT.DAT        Pattern database
  38. PATT2.DAT       Rule database
  39. WORDLIST.*      Word counts for various word lengths
  40. README.TXT      This file
  41. REGISTER.TXT    Registration form
  42.  
  43. This is the complete version of CRYPTOSOLVE and is not crippled in
  44. any way.
  45.  
  46. ---------------------------------------------------------------------
  47. REGISTRATION
  48.  
  49. It costs $10 US Dollars to register.  This gives you the right to
  50. complain and make suggestions.  See REGISTER.TXT. My address is
  51. also given at the end of this document.
  52.  
  53. ---------------------------------------------------------------------
  54.  
  55. How CRYPTOSOLVE works (and why it sometimes doesn't)
  56.  
  57. CRYPTOSOLVE's hint system is based on patterns and rules.  It uses
  58. the patterns and rules to identify individual words (or author names).
  59. Each pattern or rule maps to a particular word, so CRYPTOSOLVE cannot
  60. directly identify any word that doesn't already have a pattern or
  61. rule in the database.  To fill in "unknown" words the letters must
  62. be cross-referenced in "known" words.
  63.  
  64. This means that a cryptogram containing a large number of "unknown"
  65. words will be difficult for CRYPTOSOLVE to solve.  Someone suggested
  66. that I type in part of Jabberwocky (a nonsense poem: "TWAS BRILLIG 
  67. AND THE SLITHEY TOVES....") and of course the hint system was
  68. pretty much a complete failure.
  69.  
  70. When you start a new puzzle and don't know any of the solution yet,
  71. there are often many candidates for each word in the puzzle.
  72. CRYPTOSOLVE ranks the candidates based on historical frequency of
  73. occurrance. Suppose the puzzle contained the word "XABZZQ". Two
  74. words that would fit, all other things being equal, are "JOHNNY" and
  75. "REALLY".  CRYPTOSOLVE knows that REALLY is about 6 times as likely
  76. to occur as JOHNNY and so the autosolver is more likely to come up
  77. with X=R than it is to come up with X=J.  If the X=R is wrong and
  78. X=J is right, then the autosolver will fail.
  79.  
  80. I have been training the expert system for about 6 years (1
  81. cryptogram per day) and there are over 8000 rules in the system.
  82. The cryptograms I have been using are quotations, so the rules
  83. reflect word usage in ordinary speech and writing.  
  84.  
  85. Cryptograms that are purposely designed to be difficult by use
  86. of uncommon words are going to give the autosolver problems.
  87.  
  88. Given all that here is how you use the CRYPTOSOLVE hint system:
  89.  
  90. ---------------------------------------------------------------------
  91.  
  92. SOLVING A PUZZLE USING THE HINTS SYSTEM
  93.  
  94. If you are given a starting letter, click the letter tile 
  95. corresponding to the puzzle letter and then type the solution letter.
  96.  
  97. Bring up the HINTS page by clicking the HINTS button.
  98.  
  99. Search for PATTERNS by clicking the PATTERNS button.  PATTERNS are
  100. word or author names that can be recognized because they contain
  101. patterns of repeated letters.  A common pattern would be WXYWZX
  102. which usually is the word PEOPLE.  If any patterns are found a
  103. list will appear. You can single click a candidate to see how it
  104. looks in the puzzle. If a candidate looks good to you, either
  105. double click the candidate or hit the accept button.  
  106.  
  107. If you find acceptable patterns, then try the RULES button
  108. to see if there are any exact matches in the RULES database.
  109. RULES will not work if there are no known letters. Actually you
  110. need to have enough known letters to match a rule in the rule
  111. database, so you usually need more than one known letter.
  112.    
  113. A rule tells CRYPTOSOLVE how to infer unknown letters in a word
  114. based on known letters. For example, if you have the puzzle word
  115. "XYZX" and you know that Y=H and Z=A, then the rule "_HA_=THAT"
  116. tells you that X=T. RULES will not work unless you know one or
  117. more letters in the puzzle, and even if you do there still may be
  118. no matches with the DATABASE.  If matches are found, a list will
  119. appear showing candidates which you can try out and accept by 
  120. clicking and doubleclicking, respectively.  
  121.  
  122. The next step is to try for a statistical solution using the
  123. AUTOSOLVE method.  This works by examining multiple puzzle words.
  124. For each puzzle word examined, all possible solution words from
  125. the rule database are found.  Some candidates are eliminated by
  126. looking at what would happen in cross-referenced words (for example
  127. if the solution would create a cross-referenced word that didn't
  128. have any vowels in it).  Remaining candidates are assigned weights
  129. based on historical frequency of occurrance and on how closely the
  130. rule that produced the candidate was met (Buzz word: fuzzy logic).  
  131. The candidate is then broken down into letters and statistics are
  132. kept on the total weight counts for all possible puzzle letter/
  133. solution letter pairs.  When all of the words have been factored in,
  134. letters that get 80% or more of the total weight for a given
  135. puzzle letter are incorporated into the solution.
  136.  
  137. AUTOSOLVE can then perform another iteration taking into account
  138. any new letters in the solution. You keep running iterations until
  139. no more progress is being made.  Rather than proceed automatically
  140. to a new iteration, CRYPTOSOLVE requires you to hit the GO button.
  141. This gives you a chance to SET or EXCLUDE letters before proceeding.
  142. The SET box allows you to enter a puzzle letter/solution letter
  143. pair that you have figured out. The EXCLUDE box is used to inform
  144. CRYPTOSOLVE that a puzzle letter/solution letter is not possible.
  145. This is useful when the autosolver assigns a letter based on a
  146. high probability that is nevertheless incorrect.  You must exclude
  147. the puzzle letter/solution letter pairing to override the
  148. probability and allow assignment of a different letter.
  149.  
  150. The PATTERNS-->RULES-->AUTOSOLVE method doesn't usually require
  151. much input from you, except to click the buttons. I was curious to
  152. see how well the program would do on its own, so I bought a puzzle
  153. book and tried out 40 cryptograms.  Using just the 3 steps,
  154. CRYPTOSOLVE was able to solve 25 out of the 40. I considered a
  155. puzzle solved if I could tell what the solution was, even if one or
  156. two letters weren't filled in. (This happens where there are 2 or
  157. more candidates for a letter and none have enough weight to be
  158. included in the solution; for example you can't decide if _E is
  159. WE, ME, BE, etc. if there are no cross-referenced words to factor
  160. into the decision.)  It actually did better on the first puzzles,
  161. solving 23 out of 30, but the last 10 were more difficult puzzles
  162. that didn't use common words.  On its usual diet of quotations
  163. which are not purposely designed to be difficult, I am sure 
  164. CRYPTOSOLVE does at least as well as the 23/30 figure.
  165.  
  166. I was actually able to solve the remainder of the puzzles (except for
  167. the 40th "CHALLENGER" puzzle which turned out to be mostly
  168. unfamiliar words), just not automatically. How? See below.
  169.  
  170. So what do you do if the AUTOSOLVE method doesn't work? This is where
  171. you come in.  The POSSIBILITIES method allows you to doubleclick a
  172. puzzle word and look at candidates, sorted by probability.  
  173. Once again you are presented with a list and you can single click
  174. a candidate to see how it looks in the puzzle. If you like a
  175. candidate, double click it (or hit the ACCEPT button).  You can
  176. then go back to RULES or AUTOSOLVE and see what you get.
  177.  
  178. The other way that you interact with the program is by entering
  179. new rules and patterns.  As you work puzzles you will come across
  180. new words and author names that contain patterns that will be
  181. recognizable in future puzzles. I usually want at least two
  182. sets of repeated letters before I consider a pattern to be
  183. unique enough to be included in the PATTERN database.  This is 
  184. entirely up to you. Similarly, as you look at partial solutions
  185. you will see opportunities for new inference rules.  The hint
  186. pages all have a ADD NEW RULES button that pops up a form
  187. for entering RULES and PATTERNS.  This is your chance to make
  188. the program smarter, to be the expert behind the expert system,
  189. so USE IT!
  190.  
  191. Patterns are just words and author names. If you think that the name
  192. RONALD REAGAN has enough pattern to be identified in the future, RONALD REAGAN 
  193. is what you enter. You can look at the pattern database. It is stored
  194. as a standard text file called PATT.DAT.
  195.  
  196. Rules are a bit more complicated. There are two distinct formats. The
  197. first type of rule is used when the known letters in a word allow you 
  198. to infer the unknown letters. The left-hand side of the rule shows 
  199. the letters that must be known and uses the underscore character "_"
  200. in positions that are unknown.  The rule then has an equal sign "=" 
  201. and a right-hand side which must be just like the left-hand side, except
  202. that the "_" characters are replaced by the correct letters.  Examples
  203. of this type of rule:
  204.  
  205. _HA_=THAT
  206. CO__ITT__=COMMITTEE
  207. V_C__M=VACUUM
  208.  
  209. The second format of rule is used when there is only one unknown
  210. letter left in a word, but there are multiple letters that would fit.  
  211. The left-hand side of this type of rule gives the known letters and
  212. an "_" character in the position where the unknown letter will go.
  213. The rule then has a "*" character followed by all of the possible
  214. letters. Examples of this type of rule:
  215.  
  216. _F*IO
  217. GOA_*DLT
  218.  
  219. If I ever write another version of CRYPTOSOLVE, I expect that I will
  220. include some additional rule types.  One definite possibility is a rule
  221. type for word endings (*I_G=*ING would be an example).
  222.  
  223. You can look at the RULE database. It is stored in the text file
  224. PATT2.DAT
  225. ------------------------------------------------------------------------------------------
  226. WORD COUNTS
  227.  
  228. When you have completely solved a puzzle, you should click the
  229. WORD COUNT button so that the program will update the frequency of 
  230. occurrances.  This will automatically happen if you try to exit the 
  231. program after solving a puzzle.  You will see a list of all of the 
  232. words in the puzzle. If NEW WORD appears beside a word, this 
  233. word is being seen for the first time.  It is important that you
  234. create RULES or PATTERNS for any new words. AUTOSOLVE gets candidate 
  235. words using the rule database, so if there is no rule for a word, 
  236. AUTOSOLVE will not consider it. The WORD COUNT feature was the last 
  237. major feature added to the original DOS program, so the word counts 
  238. are still a bit low.
  239.  
  240. ------------------------------------------------------------------------------------------
  241. If Wishes were Fishes......
  242.  
  243. I wish that the program were faster. The original DOS version 
  244. which was written in compiled QuickBasic 4.0 is MUCH faster than 
  245. the VISUAL BASIC for Windows code. Didn't have a very good user
  246. user interface, but it did the job.  Of course the machines keep 
  247. getting faster and I hear rumors about there being REAL compiled
  248. code (as opposed to p-code) in a future version of Visual Basic, 
  249. so maybe time will solve all of my problems. Either that or I get
  250. a C Compiler and start writing DLL's (or maybe that new POWERBASIC 
  251. compiler).
  252.  
  253. ------------------------------------------------------------------------------------------
  254. The ABOUT Screen
  255.  
  256. View the ABOUT screen and be amazed!  I am rather proud of it.
  257.  
  258. ------------------------------------------------------------------------------------------
  259. Any Problems? Contact:
  260. James A. Parsly
  261. jparsly@usit.net
  262. 423-966-4131
  263. 624 Summit Lake Court
  264. Knoxville TN 37922
  265.